
<template>
    <div>
        <el-button v-hasPermi="props.tableItem.btnArray[0].hasPermi||[]" style="padding: 5px" :size="'small'" type="primary" @click="props.tableItem.btnArray[0].handle(props.scope,'subAdd')"
            v-if="props.scope.levelNum != 3" text>新增下级</el-button>
        <el-button v-hasPermi="props.tableItem.btnArray[1].hasPermi||[]" style="padding: 5px" :size="'small'" type="primary" @click="props.tableItem.btnArray[1].handle(props.scope,'edit')"
            text>修改</el-button>
        <el-button v-hasPermi="props.tableItem.btnArray[2].hasPermi||[]" style="padding: 5px" :size="'small'" type="primary" @click="props.tableItem.btnArray[2].handle(props.scope)"
            v-if="props.scope.levelNum == 2" text>类型管理</el-button>
            <el-button v-hasPermi="props.tableItem.btnArray[4].hasPermi||[]" style="padding: 5px" :size="'small'" type="primary" @click="props.tableItem.btnArray[4].handle(props.scope)"
            v-if="props.scope.levelNum == 2" text>价格管理</el-button>
        <el-button v-hasPermi="props.tableItem.btnArray[3].hasPermi||[]" style="padding: 5px" :size="'small'" type="danger" @click="props.tableItem.btnArray[3].handle(props.scope)"
            text>删除</el-button>

    </div>
</template>
<script setup>
import { onMounted } from 'vue'
const props = defineProps({ scope: { default: function () { return [] } }, tableItem: { default: function () { return [] } } })
onMounted(() => {
    // console.log(props.tableItem, 'props')
})
</script>